package torres.action;

import java.awt.image.BufferedImage;

import torres.view.ImageLoader;

/**
 * @author Torres
 * enums of all the different Elemental Types
 */
public enum Effect {
	FIRE,
	PHYSICAL,
	HEAL,
	UNDEAD,
	WATER,
	AIR,
	LIGHTNING,
	MANA,
	SLEEP,
	CHARM,
	BUFF_FIRE,
	BUFF_STR;
	
	/**
	 * Returns an image of elemental type
	 * @return BufferedImage of elemental type
	 */
	public BufferedImage getImage() {
		ImageLoader loader = new ImageLoader(this.toString().toLowerCase() + ".png");
		return loader.getImage();
	}
}
